<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>滑块验证</title>
    <link rel="stylesheet" href="./style.css">
</head>
<style>


</style>
<body>
<div class="flex-center">
    <div id="dragContainer">
        <!-- 颜色区域 -->
        <div id="dragBg"></div>
        <!-- 滑动容器文本 -->
        <div id="dragText"></div>
        <!-- 拖动元素 -->
        <div id="dragHandler" class="dragHandlerBg">
            <div></div>
        </div>
    </div>
</div>
<script src="./js/crypto-js.min.js"></script>
<script src="./js/main.js"></script>
<script>
    const slideVerify = new SlideVerify({
        bgColor: '#1599ff',
        roundColor: '#1599ff',
        lang: 'RMB'
    }, verifyCallBack)
    console.log(slideVerify)
    slideVerify.initDrag();
    slideVerify.initDrag();
    function verifyCallBack(value) {
        if (slideVerify?.verifyResult?.isPass) {
            console.log(value)
        }
    }
    




</script>
</body>
</html>